import request from '@/utils/request'

// 查询班级信息分页列表
export function subjectGetlist(query) {
    return request({
        url: '/analysis/total/score/getExamSubjectList',
        method: 'get',
        params: query
    })
}
//校成绩总览
export function allScorelist(query) {
    return request({
        url: '/analysis/total/score/schoolScoreInfo',
        method: 'get',
        params: query
    })
}
//优秀生分布
export function excellentStudents(query) {
    return request({
        url: '/analysis/total/score/excellent/distribution',
        method: 'get',
        params: query
    })
}
//总分分布
export function allScorerange(query) {
    return request({
        url: '/analysis/total/score/scoreSegmentDistribution',
        method: 'get',
        params: query
    })
}
//名次分段对比
export function rankSegmentCompare(query) {
    return request({
        url: '/analysis/total/rank/rankSegmentCompare',
        method: 'get',
        params: query
    })
}
//校级前10名
export function schoolTopten(query) {
    return request({
        url: '/analysis/total/score/getSchoolTop10',
        method: 'get',
        params: query
    })
}
//校级综合对比
export function schoolScoreCompare(query) {
    return request({
        url: '/analysis/total/score/schoolScoreCompare',
        method: 'get',
        params: query
    })
}
//各科平均分对比均衡分析
export function subjectschoolScoreCompare(query) {
    return request({
        url: '/analysis/subject/score/schoolScoreCompare',
        method: 'get',
        params: query
    })
}
//上线情况对比
export function comparison(query) {
    return request({
        url: '/analysis/line/online/schoolInfo',
        method: 'get',
        params: query
    })
}
//总分上线率
export function onlineRate(query) {
    return request({
        url: '/analysis/line/online/totalRate',
        method: 'get',
        params: query
    })
}
//各学科上线分析
export function subjectAnalyse(query) {
    return request({
        url: '/analysis/line/online/subjectAnalyse',
        method: 'get',
        params: query
    })
}

//上线人数对比
export function onlinePeopleCompare(query) {
    return request({
        url: '/analysis/line/online/peopleCompare',
        method: 'get',
        params: query
    })
}
//命中率贡献率
export function subjectCompare(query) {
    return request({
        url: '/analysis/line/online/subjectCompare',
        method: 'get',
        params: query
    })
}
//获取考试班级
export function getClassListScore(query) {
    return request({
        url: '/analysis/total/score/getClassList',
        method: 'get',
        params: query
    })
}
//试题作答分布情况
export function questionDistribute(query) {
    return request({
        url: '/analysis/question/questionDistribute',
        method: 'get',
        params: query
    })
}
//试题得分率
export function questionScoreRate(query) {
    return request({
        url: '/analysis/question/questionScoreRate',
        method: 'get',
        params: query
    })
}
//班级优秀生分布
export function classDistribution(query) {
    return request({
        url: '/analysis/total/score/excellent/classDistribution',
        method: 'get',
        params: query
    })
}
//校级班级成绩单
export function studentScoreInfo(query) {
    return request({
        url: '/analysis/score/getStudentScoreInfo',
        method: 'get',
        params: query
    })
}
//单科成绩单
export function getStudentSubjectScoreInfo(query) {
    return request({
        url: '/analysis/score/getStudentSubjectScoreInfo',
        method: 'get',
        params: query
    })
}
//班级各学科均衡分析
export function classScoreCompare(query) {
    return request({
        url: '/analysis/subject/score/classScoreCompare',
        method: 'get',
        params: query
    })
}

//班级试卷得分率
export function classQuestionScoreRate(query) {
    return request({
        url: '/analysis/question/classQuestionScoreRate',
        method: 'get',
        params: query
    })
}
//单个分析统计
export function getQuestionStats(query) {
    return request({
        url: '/analysis/question/getQuestionStats',
        method: 'get',
        params: query
    })
}

//获取状态是否显示分析  /analysis/gradeQueryPermissionConfig/exam/{examId}
export function gradeQueryPermissionConfig(examId) {
    return request({
        url: `/analysis/gradeQueryPermissionConfig/getSchoolConfig/${examId}`,
        method: 'get'
    })
}
//总分分布表格分析/
export function getScoreSegmentStats(query) {
    return request({
        url: '/analysis/total/score/getScoreSegmentStats',
        method: 'get',
        params: query
    })
}
//获取学科最差的分数
export function getSubjectLastInfo(query) {
    return request({
        url: '/analysis/subject/score/getSubjectLastInfo',
        method: 'get',
        params: query
    })
}
//班级获取临界生
export function studentsComplete(query) {
    return request({
        url: '/analysis/line/critical/students/complete',
        method: 'post',
        data: query
    })
}